how to solve differential equations in python